libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.SetEqualizerParam Method

Set equalizer parameters, band gain and preamp gain.

C#
public bool SetEqualizerParam(int PreAmpGain, ref int[] BandGain, int NumberOfBands);
Parameters 
Description 
int PreAmpGain 
Preamp gain in millidecibels (thousandth of decibel). Value 0 specifies no change. Positive values boost volume, negative value drops volume. This value has effect on all bands. 
ref int[] BandGain 
Array of integers specifying gain for each band in millidecibels (thousandth of decibel). Positive values boost volume, negative value drops volume. 
int NumberOfBands 
Number of frequency bands. 
Return Values 
Description 
True 
All OK. 
False 
Error. To get error message read here

Note: Band gain is expressed in millidecibels. 

Class has by default 10 equalizer bands. See SetEqualizerPoints. If you create custom bands, use correct number of bands as nNumberOfBands parameter. And don't forget to specify pnBandGain array with correct size. 

If you create 20 equalizer bands, then you need to send pointer to 20 values as pnBandGain parameter.

Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr